package com.sti.platform.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.aisino.core.model.BaseModel;

@Entity
@Table(name = "sys_resource")
@GenericGenerator(name = "uuid", strategy = "uuid")
public class Resource extends BaseModel {

	/**
	 * 
	 */
	private static final long serialVersionUID = -61743735121976679L;
	
	@Id
	@GeneratedValue(generator = "uuid")
	private String id;
	
	@Column(name="appId")
	private String addId;
	
	@Column(name="parentId")
	private String parentId;
	
	@Column(name="name")
	private String name;
	
	@Column(name="url")
	private String url;
	
	@Column(name="code")
	private String code;
	
	@Column(name="mode")
	private String model;
	
	@Column(name="createtime")
	private String createtime;
	
	@Column(name="userId")
	private String userId;
	
	@Column(name="organId")
	private String organId;
	
	@Column(name="isenable")
	private String enable;
	
	@Column(name="type")
	private String type;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getAddId() {
		return addId;
	}

	public void setAddId(String addId) {
		this.addId = addId;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public String getCreatetime() {
		return createtime;
	}

	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getOrganId() {
		return organId;
	}

	public void setOrganId(String organId) {
		this.organId = organId;
	}

	public String getEnable() {
		return enable;
	}

	public void setEnable(String enable) {
		this.enable = enable;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	
	

}
